package com.sdry.model.zm;

import java.util.List;

public class ZmGeneralQueryEntity {
	//
	private Long id;
	//表名
	private String tab;
    //字段字符串
    private String strFld;
    //where条件 后加and或者or
    private String strWhere;
    //页码
    private int page;
    //每页容纳的记录数
    private int limit;
    //排序字段及规则,不用加order by
    private String sort;
    //是否得到记录总数，1为得到记录总数，其他为不得到记录总数，返回记录集
    private byte isGetCount;
    
    //代理商id
	private Long agentId;
	
	// *******备货管理**************
	
	// 医用耗材基本信息
	private String consumablesInfo;
	// 备货日期范围
	private String stkTimeRange;
	// 备货日期范围——开始
	private String stkTimeRangeStart;
	// 备货日期范围——结束
	private String stkTimeRangeEnd;
	// 备货状态
	private String isStkDone;
	
	
	// **********授权信息**************
	
	// 医院id 
	private String hospitalId;
	// 取消授权 供应商id
	private List<String> T_del;
	// 新增授权 供应商id
	private List<String> T_add;

	// 医院名称
	private String hospitalName;
	// 代理商名称
	private String supplierName;
	
	@Override
	public String toString() {
		return "ZmGeneralQueryEntity [id=" + id + ", tab=" + tab + ", strFld="
				+ strFld + ", strWhere=" + strWhere + ", page=" + page
				+ ", limit=" + limit + ", sort=" + sort + ", isGetCount="
				+ isGetCount + ", agentId=" + agentId + ", consumablesInfo="
				+ consumablesInfo + ", stkTimeRange=" + stkTimeRange
				+ ", stkTimeRangeStart=" + stkTimeRangeStart
				+ ", stkTimeRangeEnd=" + stkTimeRangeEnd + ", isStkDone="
				+ isStkDone + ", hospitalId=" + hospitalId + ", T_del=" + T_del
				+ ", T_add=" + T_add + ", hospitalName=" + hospitalName
				+ ", supplierName=" + supplierName + "]";
	}
	 
	public String getHospitalName() {
		return hospitalName;
	}

	public void setHospitalName(String hospitalName) {
		this.hospitalName = hospitalName;
	}

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	public String getHospitalId() {
		return hospitalId;
	}

	public void setHospitalId(String hospitalId) {
		this.hospitalId = hospitalId;
	}


	public List<String> getT_del() {
		return T_del;
	}

	public void setT_del(List<String> t_del) {
		T_del = t_del;
	}

	public List<String> getT_add() {
		return T_add;
	}

	public void setT_add(List<String> t_add) {
		T_add = t_add;
	}

	public String getConsumablesInfo() {
		return consumablesInfo;
	}
	public void setConsumablesInfo(String consumablesInfo) {
		this.consumablesInfo = consumablesInfo;
	}

	public String getStkTimeRangeStart() {
		return stkTimeRangeStart;
	}
	public void setStkTimeRangeStart(String stkTimeRangeStart) {
		this.stkTimeRangeStart = stkTimeRangeStart;
	}
	public String getStkTimeRangeEnd() {
		return stkTimeRangeEnd;
	}
	public void setStkTimeRangeEnd(String stkTimeRangeEnd) {
		this.stkTimeRangeEnd = stkTimeRangeEnd;
	}
	public String getStkTimeRange() {
		return stkTimeRange;
	}
	public void setStkTimeRange(String stkTimeRange) {
		this.stkTimeRange = stkTimeRange;
	}
	public String getIsStkDone() {
		return isStkDone;
	}
	public void setIsStkDone(String isStkDone) {
		this.isStkDone = isStkDone;
	}
	public String getTab() {
		return tab;
	}
	public void setTab(String tab) {
		this.tab = tab;
	}
	public String getStrFld() {
		return strFld;
	}
	public void setStrFld(String strFld) {
		this.strFld = strFld;
	}
	public String getStrWhere() {
		return strWhere;
	}
	public void setStrWhere(String strWhere) {
		this.strWhere = strWhere;
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getLimit() {
		return limit;
	}
	public void setLimit(int limit) {
		this.limit = limit;
	}
	public String getSort() {
		return sort;
	}
	public void setSort(String sort) {
		this.sort = sort;
	}
	public byte getIsGetCount() {
		return isGetCount;
	}
	public void setIsGetCount(byte isGetCount) {
		this.isGetCount = isGetCount;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((agentId == null) ? 0 : agentId.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ZmGeneralQueryEntity other = (ZmGeneralQueryEntity) obj;
		if (agentId == null) {
			if (other.agentId != null)
				return false;
		} else if (!agentId.equals(other.agentId))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	public ZmGeneralQueryEntity() {
		super();
	}
	public ZmGeneralQueryEntity(Long id, Long agentId) {
		super();
		this.id = id;
		this.agentId = agentId;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getAgentId() {
		return agentId;
	}
	public void setAgentId(Long agentId) {
		this.agentId = agentId;
	}
}
